package cn.wolfcode.luowowo.article.domain;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 景点
 */

@Data
@Document("scenic")
public class Scenic implements Serializable{

    @Id
    private String id;
    private String name;
    private String englishName;//英文名
    private Long destId;//目的地的id
    private String summary;//摘要
    private String intro;//简介
    private String phone;//电话
    private String site;//网址
    private Integer costTime;//用时
    private String transport;//交通
    private String ticket;//门票
    private boolean ishot;//热门
    private int sequence; //排序
    private Integer deep;
    private String openTime;//开放时间
    private List<String> refScenicIds = new ArrayList<>();//包含的景点
    private long commentNum;//点评数
    private List<Long> userIds = new ArrayList<>();//来过的用户id
    private List<String> imgUrls = new ArrayList<>();//景点图片
    private List<String> tags = new ArrayList<>();//景点标签
    private List<Scenic> refScenics = new ArrayList<>();//关联景点
}
